<?php

declare(strict_types=1);

namespace App\CustHub\Request;

use Mine\MineFormRequest;

class CtrlRoomRequest extends MineFormRequest
{
    public function saveRules(): array
    {
        return [
            'robot_type'=>'required|in:0,1',
            'room_wxid' => 'required',
            'msg_source' => 'required',
            'listening_content' => 'required',
            'is_auto_at_cust' => 'required|in:0,1'
        ];
    }

    public function getInfoRules(): array
    {
        return [
            'id' => 'required'
        ];
    }

    public function updateRules(): array
    {
        return array_merge(['id' => 'required'],$this->saveRules());
    }

    public function deleteRules(): array
    {
        return [
            'id' => 'required'
        ];
    }

    public function changeStatusRules()
    {
        return [
            'id' => 'required',
            'status' => 'required|in:0,1'
        ];
    }

    public function editRemarkRules()
    {
        return [
            'id' => 'required',
            'remark' => 'required'
        ];
    }

    public function copyRules()
    {
        return [
            'id' => 'required'
        ];
    }
}